class DownloadResult {
  String? id;
  int? percent;
  int? downloadedBytes;
  int? totalBytes;

  void fromJson(Map json){
    id = json["id"]?.toString();
    percent = json["percent"];
    downloadedBytes = json["downloadedBytes"];
    totalBytes = json["totalBytes"];
  }

  Map<String, dynamic> toJson(){
    return <String, dynamic>{
      "id": id,
      "percent": percent,
      "downloadedBytes": downloadedBytes,
      "totalBytes": totalBytes
    };
  }
}